<script src="../js/jquery-1.3.min.js"></script>
<div id="page_bar_div">
<?php

	include_once("ajax_page_bar.class.php");
	
	$total_record 	= 68;		//总记录数
	
	$rows_per_page 	= 5;     	//每页显示多少条记录
	$cur_page 		= 1;      	//当前页面
	
	$pager = new ajax_page_bar($total_record,$rows_per_page);
	
	$pager->set_url_params(array('id'=>10));
	$pager->set_base_url("test.php");
	$pager->set_align('right');
	$pageBar = $pager->get_navigation('page_bar_div');

	echo $pageBar;


?>
</div>
<script>
	
	//点击分页号,发送请求前,会调用该函数.可不定义
	show_server_before(page_bar_div_id)
	{
		
	}
	
	//点击分页号,获取数据出错,会调用该函数.可不定义
	show_server_error(msg,page_bar_div_id)
	{
		
	}
	
	//点击分页号,成功获取数据,会调用该函数.一定要定义
	function show_server_data(data,page_bar_div_id)
	{
		alert(data);
	}
</script>